import {USER_LIST_PAGEINFO} from "@/constant/storage.js";
import {getSessionObject, setSessionObject} from "@/api/util/storage.js";

export function setPageInfo(pageInfo){
    setSessionObject(USER_LIST_PAGEINFO,pageInfo)
}

export function getPageInfo(){
    try {
        let result=getSessionObject(USER_LIST_PAGEINFO)
        return result||{current:1,size:10}
    }catch (e){
        return {current:1,size:10}
    }

}